package cn.ainit.common;


public class DzEDITypeId  implements java.io.Serializable {

	private static final long serialVersionUID = -8518099631888085960L;
	
	private String ediTypeId;
     private String code;


    public DzEDITypeId() {
    }

    public DzEDITypeId(String ediTypeId, String code) {
        this.ediTypeId = ediTypeId;
        this.code = code;
    }

   
    public String getEdiTypeId() {
        return this.ediTypeId;
    }
    
    public void setEdiTypeId(String ediTypeId) {
        this.ediTypeId = ediTypeId;
    }


    public String getCode() {
        return this.code;
    }
    
    public void setCode(String code) {
        this.code = code;
    }
   



   public boolean equals(Object other) {
         if ( (this == other ) ) return true;
		 if ( (other == null ) ) return false;
		 if ( !(other instanceof DzEDITypeId) ) return false;
		 DzEDITypeId castOther = ( DzEDITypeId ) other; 
         
		 return ( (this.getEdiTypeId()==castOther.getEdiTypeId()) || ( this.getEdiTypeId()!=null && castOther.getEdiTypeId()!=null && this.getEdiTypeId().equals(castOther.getEdiTypeId()) ) )
 && ( (this.getCode()==castOther.getCode()) || ( this.getCode()!=null && castOther.getCode()!=null && this.getCode().equals(castOther.getCode()) ) );
   }
   
   public int hashCode() {
         int result = 17;
         
         result = 37 * result + ( getEdiTypeId() == null ? 0 : this.getEdiTypeId().hashCode() );
         result = 37 * result + ( getCode() == null ? 0 : this.getCode().hashCode() );
         return result;
   }   





}